<!DOCTYPE HTML>
<html>
<head>
<script>
	window.onload = function(){
		var canvas = document.getElementById("myCanvas");
		var context = canvas.getContext("2d");
		
		context.font = "40pt Calibri";
		context.fillStyle = "black";
		context.textAlign = "center";
		context.textBaseline = "top";
		context.fillText("Hello world!", canvas.width/2, 120);
	}
</script>
</head>
<body>
	<canvas id="myCanvas" width="600" height="240" style="border:1px solid black;">
	</canvas>
</body>
</html>